package com.cysyz.mylib.mylibtools.livetelecast;

/**
 * Created by jiaoyujia on 2015/1/15.
 */
public enum ResponseCode {
    SUCCESS("0","成功"),
    FAIL("-1","失败"),
    REQUEST_PARAMETER_ERROR("101","参数错误"),
    REQUEST_PARAMETER_TRANS_ERROR("102","参数转换错误"),
    AUTHENTICATION_FAIL("200","认证失败"),
    PASSWORD_EXPIRES ("201","口令过期"),
    SYSTEM_ERROR("300","系统错误"),
    BUSINESS_ERROR("500","业务错误"),
    BUSINESS_ERROR_DATA_NOT_EXIST("501","业务错误–数据不存在"),
    BUSINESS_ERROR_DATA_DUPLICATE("502","业务错误–重复数据");

    private String code;
    private String description;

    ResponseCode(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
